package com.aclever.sys;

import com.aclever.sys.logic.Controller;
import com.aclever.sys.logic.ModelParser;
import com.aclever.sys.views.Standart;

import javax.swing.*;
import java.awt.*;

/**
 * Parser v 0.1 == Window
 * author: aClever
 */


public class Parser extends JFrame{
    private ModelParser model = null;
    private Standart view = null;
    private Controller controller = null;


    public Parser(){
        super("Ajarius Parser v 0.1");

        controller = new Controller(this);
        model = new ModelParser(this);
        view = new Standart(this);

        // params JFrame
        setContentPane(view);
        setSize(900,700);
        setVisible(true);
        setResizable(false);
        setLocation(300,0);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }


    public Controller getController(){
        return this.controller;
    }

    public ModelParser getModel(){
        return this.model;
    }

    public Standart getView(){
        return  this.view;
    }


}
